<%@page import="application.MembreBean"%>
<%@page import="application.Facade"%>
<%@page import="controleur.ConstantesWeb"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<font color="black">

<%
    Facade f = new Facade();
    MembreBean m;

    m = f.getMembre(request.getCookies());
    
    if (m != null) {%>
        <form name="<%=ConstantesWeb.CMD_DECONNEXION%>" method="post" action="./Entree">
            <input type="hidden" name="cmd" value="<%=ConstantesWeb.CMD_DECONNEXION%>"/>
        </form>
    <%}%>

<FORM name="<%=ConstantesWeb.CMD_PRINCIPALE%>" METHOD="POST" ACTION="./Entree">
    <input type="hidden" name="cmd" value="<%=ConstantesWeb.CMD_PRINCIPALE%>"/>
</FORM>
<FORM name="<%=ConstantesWeb.CMD_AFFICHER_LIVRES%>" METHOD="POST" ACTION="./Entree">
    <input type="hidden" name="cmd" value="<%=ConstantesWeb.CMD_AFFICHER_LIVRES%>"/>
</FORM>
<FORM name="<%=ConstantesWeb.CMD_AFFICHER_AUTEURS%>" METHOD="POST" ACTION="./Entree">
    <input type="hidden" name="cmd" value="<%=ConstantesWeb.CMD_AFFICHER_AUTEURS%>"/>
</FORM>

<div id="gbx4">
    <ul id="tabs">        
        <li><a href="#" onclick="document.forms['<%=ConstantesWeb.CMD_PRINCIPALE%>'].submit();">Principale</a></li>
        <li><a href="#" onclick="document.forms['<%=ConstantesWeb.CMD_AFFICHER_LIVRES%>'].submit();">Livres</a></li>
        <li><a href="#" onclick="document.forms['<%=ConstantesWeb.CMD_AFFICHER_AUTEURS%>'].submit();">Auteurs</a></li>
        <%if (m != null) {%>
            <li><a href="#" onclick="document.forms['<%=ConstantesWeb.CMD_DECONNEXION%>'].submit();">Déconnexion</a></li>
        <%}%>
    </ul>
</div>
<br />

<!--
       } else {
            <li><a href="<%//=ConstantesWeb.%>">Connexion</a></li>
       }
-->
